package com.usian.controller;

import com.usian.feign.ProviderFeign;
import com.usian.model.pojos.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1/result")
public class ResultController {

    @Autowired
    private ProviderFeign providerFeign;

    /**
     * 从字典表查询所有核查论处结果
     *
     * @return
     */
    @PostMapping("/list")
    public List<Result> resultList(){
        return providerFeign.resultList();
    }
}
